package com.ruoyi.generator.config.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConfigurationProperties(prefix = "ruoyi.generator")
public class GenConfigProperties {
    /**
     * 作者
     */
    public String author;

    /**
     * 生成包路径
     */
    public String packageName;

    /**
     * 自动去除表前缀，默认是false
     */
    public boolean autoRemovePrefix;

    /**
     * 表前缀(类名不会包含表前缀)
     */
    public String tablePrefix;

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getPackageName() {
        return packageName;
    }

    public void setPackageName(String packageName) {
        this.packageName = packageName;
    }

    public boolean isAutoRemovePrefix() {
        return autoRemovePrefix;
    }

    public void setAutoRemovePrefix(boolean autoRemovePrefix) {
        this.autoRemovePrefix = autoRemovePrefix;
    }

    public String getTablePrefix() {
        return tablePrefix;
    }

    public void setTablePrefix(String tablePrefix) {
        this.tablePrefix = tablePrefix;
    }
}
